//
//  HeroViewController.m
//  WhoElse
//
//  Created by 孙宇鹏 on 15/11/16.
//  Copyright © 2015年 sunsystem. All rights reserved.
//

#import "HeroViewController.h"
#import "HeroView.h"
#import "AllHeroViewController.h"
#import "MyHeroViewController.h"
#import "FreeViewController.h"

@interface HeroViewController ()

@property(nonatomic,strong)HeroView *heroV;

@property(nonatomic,strong)AllHeroViewController *allHeroVC;

@property(nonatomic,strong)MyHeroViewController *myHeroVC;

@property(nonatomic,strong)FreeViewController *freeVC;

@end

@implementation HeroViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    //
    self.view = self.heroV;
    
    //
    [self addViewControllers];
    
}

-(void)addViewControllers{
    
    _allHeroVC = [[AllHeroViewController alloc]init];
    _myHeroVC = [[MyHeroViewController alloc]init];
    _freeVC = [[FreeViewController alloc]init];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
